package cst.a903dss.zyfypt_903dss;

import java.util.List;

import cst.a903dss.zyfypt_903dss.Bean.ArticleBean;
import cst.a903dss.zyfypt_903dss.Bean.LoginBean;
import cst.a903dss.zyfypt_903dss.Bean.ProjectBean;
import cst.a903dss.zyfypt_903dss.Bean.RegBean;
import cst.a903dss.zyfypt_903dss.Bean.SVideoBean;
import cst.a903dss.zyfypt_903dss.Bean.TcaseBean;
import cst.a903dss.zyfypt_903dss.Bean.TwareBean;
import cst.a903dss.zyfypt_903dss.Bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by 双 on 2017/5/10.
 */

public interface ResService {
    @GET("api.php/login")
    Call<LoginBean>login(@Query("username") String username, @Query("password") String password);
     @GET("api.php/Lists/mod/{mod}")
    Call<List<VideoBean>>getVideoList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Query("SessionID") String SessionID);
    @GET("api.php/reg")
    Call<RegBean> reg(@Query("username") String username,
                      @Query("password") String password,
                      @Query(" tel") String tel,
                      @Query("roleid") String roleid,
                      @Query("  realname ") String realname);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>>getArticleList(@Path("mod") String mod,
                                          @Query("page") int page,
                                          @Query("SessionID") String SessionID);
    /*@GET("api.php./get/mod/{mod}")
    Call<ArticleBean> getArticle(@Path("mod") String mod,
                                 @Query("id") int id);*/
    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>>getTwareList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String SessionID);


   @GET( "api.php/listspecial/mod/{mod}")
    Call<List<SVideoBean>> getSVideoList(@Path( "mod")String mod, @Query( "page")  int page, @Header( "SessionID") String SessionID);
   @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getTcaseList(@Path( "mod")String mod, @Query( "page")  int page, @Header( "SessionID") String SessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>> getProjectList(@Path( "mod")String mod, @Query( "page")  int page, @Header( "SessionID") String SessionID);
    //getDetail();
}
